package com.office.meetingManage.meetroom.dao;

import com.office.meetingManage.meetroom.pojo.OaReservationmeetroom;
import com.office.meetingManage.meetroom.pojo.otherPojo.MeetingParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: 许月
 * @Date: 2022/10/28/14:42
 */
@Mapper
public interface ReservationmeetroomMapper {

    /**
     * 根据会议室id查预约会议
     * @param mId
     * @return
     */
    List<OaReservationmeetroom> queryListByMid(@Param("mId") Integer mId);

    /**
     * 添加预约会议
     * @param reservationmeetroom
     * @return
     */
    Integer addMeeting(@Param("reservationmeetroom") OaReservationmeetroom reservationmeetroom);

    /**
     * 修改状态
     * @param mId
     */
    Integer changeStatus(@Param("mId")Integer mId,@Param("status") Integer status);

    /**
     * 查询会议
     * @param meetingParam
     * @return
     */
    List<OaReservationmeetroom> queryList(@Param("meetingParam") MeetingParam meetingParam);

    /**
     * 将isRemove改为1，逻辑取消（删除）会议
     * @param rid
     * @return
     */
    Integer deleteByRid(Integer rid);

    /**
     * 审批会议
     * @param reservationmeetroom
     * @return
     */
    Integer approval( @Param("reservationmeetroom")OaReservationmeetroom reservationmeetroom);
}
